<template>
  <div class="showImgCont">
    <img :src="src+ossSrc" :style="'height:'+height" title="点击查看" @click="showFn" />
    <el-dialog
      :show-close="false"
      :visible.sync="showImg"
      width="400px">
      <div class="maskImg">
        <img :src="src+ossSrc" />
      </div>
    </el-dialog>
  </div>
</template>

<script>
    export default {
        components: {},
        data() {
            return {
              showImg:false,
            }
        },
        props: {
          src:String,
          height:String,
        },
        methods: {
          showFn(){
            this.showImg = true
          }
        },
        mounted() {
        },
        created() {
        },
    }
</script>

<style scoped lang="less">
.showImgCont{
  display: inline-block;
  img{
    width: 100%;
  }
  .maskImg{
    width: 100%;
    box-sizing: border-box;
  }
}
</style>
<style>
.showImgCont .el-dialog__header{
  padding:0 0 0!important;
}
</style>
